package com.droowa.domain;

import java.io.Serializable;

public class CompletePC implements Serializable{

	private String fileName;
	private String completeId;
	private String completeName;
	private int completePrice;
	private int completeQuantity;
	private String mainboardId;
	private String cpuId;
	private String coolerId;
	private String memoryId;
	private String graphicId;
	private String hddId;
	private String ssdId;
	private String dvdId;
	private String soundId;
	private String powerId;
	private String caseId;
	private String osId;
	private String event;
	private int cnt;
	public CompletePC() {
	}
	public CompletePC(String fileName, String completeId, String completeName,
			int completePrice, int completeQuantity, String mainboardId,
			String cpuId, String coolerId, String memoryId, String graphicId,
			String hddId, String ssdId, String dvdId, String soundId,
			String powerId, String caseId, String osId, String event, int cnt) {
		this.fileName = fileName;
		this.completeId = completeId;
		this.completeName = completeName;
		this.completePrice = completePrice;
		this.completeQuantity = completeQuantity;
		this.mainboardId = mainboardId;
		this.cpuId = cpuId;
		this.coolerId = coolerId;
		this.memoryId = memoryId;
		this.graphicId = graphicId;
		this.hddId = hddId;
		this.ssdId = ssdId;
		this.dvdId = dvdId;
		this.soundId = soundId;
		this.powerId = powerId;
		this.caseId = caseId;
		this.osId = osId;
		this.event = event;
		this.cnt = cnt;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getCompleteId() {
		return completeId;
	}
	public void setCompleteId(String completeId) {
		this.completeId = completeId;
	}
	public String getCompleteName() {
		return completeName;
	}
	public void setCompleteName(String completeName) {
		this.completeName = completeName;
	}
	public int getCompletePrice() {
		return completePrice;
	}
	public void setCompletePrice(int completePrice) {
		this.completePrice = completePrice;
	}
	public int getCompleteQuantity() {
		return completeQuantity;
	}
	public void setCompleteQuantity(int completeQuantity) {
		this.completeQuantity = completeQuantity;
	}
	public String getMainboardId() {
		return mainboardId;
	}
	public void setMainboardId(String mainboardId) {
		this.mainboardId = mainboardId;
	}
	public String getCpuId() {
		return cpuId;
	}
	public void setCpuId(String cpuId) {
		this.cpuId = cpuId;
	}
	public String getCoolerId() {
		return coolerId;
	}
	public void setCoolerId(String coolerId) {
		this.coolerId = coolerId;
	}
	public String getMemoryId() {
		return memoryId;
	}
	public void setMemoryId(String memoryId) {
		this.memoryId = memoryId;
	}
	public String getGraphicId() {
		return graphicId;
	}
	public void setGraphicId(String graphicId) {
		this.graphicId = graphicId;
	}
	public String getHddId() {
		return hddId;
	}
	public void setHddId(String hddId) {
		this.hddId = hddId;
	}
	public String getSsdId() {
		return ssdId;
	}
	public void setSsdId(String ssdId) {
		this.ssdId = ssdId;
	}
	public String getDvdId() {
		return dvdId;
	}
	public void setDvdId(String dvdId) {
		this.dvdId = dvdId;
	}
	public String getSoundId() {
		return soundId;
	}
	public void setSoundId(String soundId) {
		this.soundId = soundId;
	}
	public String getPowerId() {
		return powerId;
	}
	public void setPowerId(String powerId) {
		this.powerId = powerId;
	}
	public String getCaseId() {
		return caseId;
	}
	public void setCaseId(String caseId) {
		this.caseId = caseId;
	}
	public String getOsId() {
		return osId;
	}
	public void setOsId(String osId) {
		this.osId = osId;
	}
	public String getEvent() {
		return event;
	}
	public void setEvent(String event) {
		this.event = event;
	}
	public int getCnt() {
		return cnt;
	}
	public void setCnt(int cnt) {
		this.cnt = cnt;
	}
	@Override
	public String toString() {
		return "CompletePC [fileName=" + fileName + ", completeId="
				+ completeId + ", completeName=" + completeName
				+ ", completePrice=" + completePrice + ", completeQuantity="
				+ completeQuantity + ", mainboardId=" + mainboardId
				+ ", cpuId=" + cpuId + ", coolerId=" + coolerId + ", memoryId="
				+ memoryId + ", graphicId=" + graphicId + ", hddId=" + hddId
				+ ", ssdId=" + ssdId + ", dvdId=" + dvdId + ", soundId="
				+ soundId + ", powerId=" + powerId + ", caseId=" + caseId
				+ ", osId=" + osId + ", event=" + event + ", cnt=" + cnt + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((caseId == null) ? 0 : caseId.hashCode());
		result = prime * result + cnt;
		result = prime * result
				+ ((completeId == null) ? 0 : completeId.hashCode());
		result = prime * result
				+ ((completeName == null) ? 0 : completeName.hashCode());
		result = prime * result + completePrice;
		result = prime * result + completeQuantity;
		result = prime * result
				+ ((coolerId == null) ? 0 : coolerId.hashCode());
		result = prime * result + ((cpuId == null) ? 0 : cpuId.hashCode());
		result = prime * result + ((dvdId == null) ? 0 : dvdId.hashCode());
		result = prime * result + ((event == null) ? 0 : event.hashCode());
		result = prime * result
				+ ((fileName == null) ? 0 : fileName.hashCode());
		result = prime * result
				+ ((graphicId == null) ? 0 : graphicId.hashCode());
		result = prime * result + ((hddId == null) ? 0 : hddId.hashCode());
		result = prime * result
				+ ((mainboardId == null) ? 0 : mainboardId.hashCode());
		result = prime * result
				+ ((memoryId == null) ? 0 : memoryId.hashCode());
		result = prime * result + ((osId == null) ? 0 : osId.hashCode());
		result = prime * result + ((powerId == null) ? 0 : powerId.hashCode());
		result = prime * result + ((soundId == null) ? 0 : soundId.hashCode());
		result = prime * result + ((ssdId == null) ? 0 : ssdId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CompletePC other = (CompletePC) obj;
		if (caseId == null) {
			if (other.caseId != null)
				return false;
		} else if (!caseId.equals(other.caseId))
			return false;
		if (cnt != other.cnt)
			return false;
		if (completeId == null) {
			if (other.completeId != null)
				return false;
		} else if (!completeId.equals(other.completeId))
			return false;
		if (completeName == null) {
			if (other.completeName != null)
				return false;
		} else if (!completeName.equals(other.completeName))
			return false;
		if (completePrice != other.completePrice)
			return false;
		if (completeQuantity != other.completeQuantity)
			return false;
		if (coolerId == null) {
			if (other.coolerId != null)
				return false;
		} else if (!coolerId.equals(other.coolerId))
			return false;
		if (cpuId == null) {
			if (other.cpuId != null)
				return false;
		} else if (!cpuId.equals(other.cpuId))
			return false;
		if (dvdId == null) {
			if (other.dvdId != null)
				return false;
		} else if (!dvdId.equals(other.dvdId))
			return false;
		if (event == null) {
			if (other.event != null)
				return false;
		} else if (!event.equals(other.event))
			return false;
		if (fileName == null) {
			if (other.fileName != null)
				return false;
		} else if (!fileName.equals(other.fileName))
			return false;
		if (graphicId == null) {
			if (other.graphicId != null)
				return false;
		} else if (!graphicId.equals(other.graphicId))
			return false;
		if (hddId == null) {
			if (other.hddId != null)
				return false;
		} else if (!hddId.equals(other.hddId))
			return false;
		if (mainboardId == null) {
			if (other.mainboardId != null)
				return false;
		} else if (!mainboardId.equals(other.mainboardId))
			return false;
		if (memoryId == null) {
			if (other.memoryId != null)
				return false;
		} else if (!memoryId.equals(other.memoryId))
			return false;
		if (osId == null) {
			if (other.osId != null)
				return false;
		} else if (!osId.equals(other.osId))
			return false;
		if (powerId == null) {
			if (other.powerId != null)
				return false;
		} else if (!powerId.equals(other.powerId))
			return false;
		if (soundId == null) {
			if (other.soundId != null)
				return false;
		} else if (!soundId.equals(other.soundId))
			return false;
		if (ssdId == null) {
			if (other.ssdId != null)
				return false;
		} else if (!ssdId.equals(other.ssdId))
			return false;
		return true;
	}
	
}
